package com.yeyks.consumer.dal.dao;

import com.yeyks.consumer.dal.domain.UserBill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * 用户推广佣金账单明细表 Mapper 接口
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
public interface UserBillMapper extends BaseMapper<UserBill> {
    int deleteByPrimaryKey(Long id);

    int insertSelective(UserBill record);

    UserBill selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserBill record);

    int updateByPrimaryKey(UserBill record);

    Long sumBillByUserIdAndType(@Param("userId") Integer userId, @Param("type") Integer type);

}
